<?php 
defined( '_JEXEC' ) or die( 'Restricted access' );
if(!defined('DS')){
	define('DS',DIRECTORY_SEPARATOR);
}

$menu = JSite::getMenu();
$user = JFactory::getUser();
if ($menu->getActive() == $menu->getDefault())
	$main = 'homepage';
if($menu->getActive()->id == 223 || $menu->getActive()->id == 224)
	$main = 'homepage';
else
	$main = 'subpage';
$lang =JFactory::getLanguage();
?>
<!DOCTYPE html>
<html>
	<head>
	  	<meta charset="utf-8" />
	  	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	  	<meta name="mobile-web-app-capable" content="yes">
     	<link rel="icon" sizes="196x196" href="images/icons/196-icon.png">
     	<link rel="icon" sizes="128x128" href="images/icons/128-icon.png">
	  	<link rel="apple-touch-icon" sizes="120x120" href="images/icons/128-icon.png">
	  	<link rel="apple-touch-icon-precomposed" sizes="120x120" href="images/icons/128-icon.png">
	  	
	  	<jdoc:include type="head" />
	  	<script type="text/javascript">
			var base_url = "<?php JURI::base(); ?>";
			var JS_ALERT_EMAIL_IS_INVALID = "<?php echo JText::_('JS_ALERT_EMAIL_IS_INVALID'); ?>"
			var JS_ALERT_PASSWORD_EMPTY = "<?php echo JText::_('JS_ALERT_PASSWORD_EMPTY'); ?>"
			var JS_ALERT_THE_SAME_PASSWORD = "<?php echo JText::_('JS_ALERT_THE_SAME_PASSWORD'); ?>"
			var JS_ALERT_PLEASE_TICK_CHECK_BOX = "<?php echo JText::_('JS_ALERT_PLEASE_TICK_CHECK_BOX'); ?>"
			var JS_ALERT_EMAIL_IS_NOT_AVAILABLE = "<?php echo JText::_('JS_ALERT_EMAIL_IS_NOT_AVAILABLE'); ?>"
			var JS_ALERT_LOADING = "loading...";
		</script>
  		<link href='http://wmcvip.vn/templates/wrd/favicon.ico' rel='shortcut icon' type='image/vnd.microsoft.icon' />
  		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700&subset=latin,vietnamese' rel='stylesheet' type='text/css'>
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/bootstrap/3.11/css/bootstrap.min.css">
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/bootstrap/3.11/css/bootstrap-datetimepicker.min.css">
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/font-awesome-4.0.3/css/font-awesome.min.css">
  		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/stylesheets/app.css">
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/stylesheets/bootstrap-touch-carousel.css">
		
		<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/javascripts/jquery.js"></script>
		<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/javascripts/jquery.mobile-1.4.2.min.js"></script>
		<script src="<?php echo $this->baseurl ?>/media/bootstrap/3.11/js/bootstrap.min.js"></script>
		<script src="<?php echo $this->baseurl ?>/media/bootstrap/3.11/js/bootstrap-datetimepicker.min.js"></script>
		<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/javascripts/lazy_loading.js"></script>
		<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/javascripts/app.js"></script>

		<script src="<?php echo $this->baseurl ?>/media/com_wrd/js/number_format.js"></script>
		<script src="<?php echo $this->baseurl ?>/media/com_wrd/js/jquery.cookie.js"></script>
		<script src="<?php echo $this->baseurl ?>/media/com_wrd/js/json_encode.js"></script>
		<script src="<?php echo $this->baseurl ?>/media/com_wrd/js/json_decode.js"></script>
		<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/javascripts/bootstrap-touch-carousel.js"></script>
		
		<script>
		  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
		  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
		  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
		  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

		  ga('create', 'UA-38338567-1', 'wmcvip.vn');
		  ga('require', 'displayfeatures');
		  ga('send', 'pageview');

		</script>

	</head>
	<body id="body_wmcvip_mobile">
	    <section>
		<div class="navbar top_nav">
			<div class="container">
				<div class="navbar-header">
					<a class="navbar-brand wmcvip-brand" href="index.php">
						<img width="110px" class="img-responsive" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/home.png"></a>
				</div>
				<div class="pull-right">
					<a href="index.php"><img width="40px" class="img-responsive" src="images/wmc-logo.png"></a>
				</div>
			</div>
		</div>
		<div class="navbar wmcvip-navbar-container">
			<div class="container-fluid wmcvip-nav-container">
				
				<ul class="nav navbar-nav wmcvip-nav wmcvip-nav1st navbar-left">
					<li class="dropdown">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			          	<!-- <span class="glyphicon glyphicon-align-justify"></span>  -->
			          	<i class="fa fa-bars"></i>
			          </a>
			          <ul class="dropdown-menu left-menu">
			            <?php if($lang->getTag() == 'vi-VN'): ?>
							<li class="about">
								<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=88&Itemid=104'); ?>">
									<i class="fa fa-info-circle"></i><?php echo JText::_('WMC_TOP_MENU_ABOUT') ?></a></li>
							<li class="facilities">
								<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=90&Itemid=105'); ?>">
									<i class="fa fa-star"></i><?php echo JText::_('WMC_TOP_MENU_BENEFIT') ?></a></li>
							
							<li class="promotion">
								<a href="<?php echo JRoute::_('index.php?option=com_promotions&view=redemptions&Itemid=175'); ?>">
									<i class="fa fa-gift"></i><?php echo JText::_('WMC_TOP_MENU_REWARDS'); ?></a></li>
						     <li class="faq">
                                <a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=89&Itemid=151'); ?>">
                                    <i class="fa fa-question-circle"></i><?php echo JText::_('WMC_TOP_MENU_CONTACT'); ?></a></li>
						<?php elseif($lang->getTag() == 'en-GB'):?>
							<li class="about">
								<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=87&Itemid=104'); ?>">
									<i class="fa fa-info-circle"></i><?php echo JText::_('WMC_TOP_MENU_ABOUT') ?></a></li>
							<li class="facilities">
								<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=91&Itemid=105'); ?>">
									<i class="fa fa-star"></i><?php echo JText::_('WMC_TOP_MENU_BENEFIT') ?></a></li>
						    <li class="promotion">
                                <a href="<?php echo JRoute::_('index.php?option=com_promotions&view=redemptions&Itemid=175'); ?>">
                                    <i class="fa fa-gift"></i><?php echo JText::_('WMC_TOP_MENU_REWARDS'); ?></a></li>
							<li class="faq">
								<a href="<?php echo JRoute::_('index.php?option=com_content&view=article&id=26&Itemid=151'); ?>">
									<i class="fa fa-question-circle"></i><?php echo JText::_('WMC_TOP_MENU_CONTACT'); ?></a></li>
						<?php endif;?>
			          </ul>
			        </li>
				</ul>
				<ul class="nav navbar-nav wmcvip-nav navbar-right">
					<jdoc:include type="modules" name="loginmenu" />
					<li class="facebook">
						<a target="_blank" href="https://www.facebook.com/pages/WMC-VIP/312001312265919?ref=hl">
							<i class="fa fa-facebook"></i>
						</a>
					</li>
					<jdoc:include type="modules" name="language" />
				</ul>
				
			</div>
		</div>
		<!-- header -->

			<!-- login -->
			<jdoc:include type="modules" name="login" />

			<!-- slideshow -->
			<div id="carousel-generic" class="carousel slide" data-ride="carousel">
				 <div class="carousel-inner">
					
						<?php if($lang->getTag() == 'vi-VN'): ?>
						  	<div class="item active"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner1vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner2vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner3vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner4vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner5vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner6vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner7vn.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner8vn.jpg" /></a></div>
					  	<?php elseif($lang->getTag() == 'en-GB'):?>
					  		<div class="item active"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner1en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner2en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner3en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner4en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner5en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner6en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner7en.jpg" /></a></div>
						  	<div class="item"><a href="#"><img class="lazy" src="images/slideshow/mobile/banner8en.jpg" /></a></div>
					  	<?php endif;?>
				</div>
				
				 <a class="left carousel-control" href="#carousel-generic" data-slide="prev">
				    <span class="glyphicon glyphicon-chevron-left"></span>
				  </a>
				  <a class="right carousel-control" href="#carousel-generic" data-slide="next">
				    <span class="glyphicon glyphicon-chevron-right"></span>
				  </a>
  
			</div>
			
			
			<jdoc:include type="modules" name="slideshow" />
			
			<!-- body -->
			<div class="container-fluid">
			<jdoc:include type="modules" name="metro" />
			<?php if($main == 'subpage'): ?>
			<div class="row">
				<div class="col-xs-12 page-header page-header-wmc">
					
					<jdoc:include type="component" />
					<jdoc:include type="modules" name="submetro" />
                </div>
            	
            	<!-- <jdoc:include type="modules" name="right" /> -->
					
            	
            	<input type="hidden" name="slug_bad_sub" id="slug_bad_sub" value="1">
            </div>
            <?php endif; ?>
            </div>

			<!-- pre footer -->
			<!-- <div class="row" id="footertitle">
				<div class="twelve columns all_reward_header">	
					<?php echo JText::_('WRD_HOME_VIEW_ALL_REWARDS') ?>
				</div>
			</div> -->
			<div class="container-fluid pre_footer">
				<jdoc:include type="modules" name="col1" />
				<jdoc:include type="modules" name="col2" />
				<jdoc:include type="modules" name="col3" />
				<div class="row metro">
					<div class="col-xs-12 metro_reward">
						<div class="all_reward">
							<a href="<?php echo JRoute::_('index.php?option=com_promotions&view=redemptions&Itemid=175'); ?>">
								<?php echo JText::_('WRD_HOME_VIEW_ALL_REWARDS') ?>
							</a>
						</div>
					</div>
				</div>
				<div class="row metro">
					<div class="col-xs-12 contact">
						<div class="contact_content">
							<jdoc:include type="modules" name="contactus" />
						</div>
					</div>
				</div>
			</div>
			
			
			
			<!-- footer -->
			<div class="footer" style="display: none">
				<div class="row footer_content">
					<div class="two columns">
						<div class="row">
							<div class="twelve columns">
								<a class="wmc_group" target="blank" href="http://www.wmcvietnam.com/">&nbsp;</a>
							</div>
							<div class="one columns">
								
							</div>
						</div>
					</div>
					<div class="ten columns" >
						<div class="row">
							<div class="row">
								<div class="one columns blank">
									
								</div>
								<div class="two columns amigo">
									<a class="" target="blank" href="http://amigo.wmcvietnam.com">&nbsp;</a>
								</div>
								<div class="two columns ccnh">
									<a class="" target="blank" href="http://cafecentral.wmcvietnam.com">&nbsp;</a>
								</div>
								<div class="two columns ducbao">
									<a class="" target="blank" href="http://www.windsorplazahotel.com/index.php?option=com_content&view=article&id=3&Itemid=3&lang=en">&nbsp;</a>
								</div>
								<div class="two columns kissho">
									<a class="" target="blank" href="http://kissho.wmcvietnam.com">&nbsp;</a>
								</div>
								<div class="three columns sherwood">
									<a class="" target="blank" href="http://www.sherwoodresidence.com">&nbsp;</a>
								</div>
								
							</div>
							<div class="row">
								<div class="one columns ">
									
								</div>
								<div class="two columns ngandinh">
									<a class="" target="blank" href="http://www.windsorplazahotel.com/index.php?option=com_content&view=article&id=3&Itemid=3&lang=en">&nbsp;</a>
								</div>
								<div class="two columns spa">
									<a class="" target="blank" href="http://windsorplazahotel.com/index.php?option=com_content&view=article&id=48&Itemid=64&lang=en">&nbsp;</a>
								</div>
								<div class="two columns windsor">
									<a class="" target="blank" href="http://windsorplazahotel.com/">&nbsp;</a>
								</div>
								<div class="two columns ccad">
									<a class="" target="blank" href="http://www.windsorplazahotel.com/index.php?option=com_content&view=article&id=3&Itemid=3&lang=en">&nbsp;</a>
								</div>
								<div class="two columns tott">
									<a class="" target="blank" href="http://www.windsorplazahotel.com/index.php?option=com_content&view=article&id=3&Itemid=3&lang=en">&nbsp;</a>
								</div>
								
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="manageby container-fluid">
				<div class="row">
					<div class="twelve columns manageby_content">
						<a class="" href="http://wmcvietnam.com" target="blank" >&nbsp;</a>
					</div>
				</div>
			</div>
				<?php require_once(JPATH_SITE.DS.'templates'.DS.'wrdmobile'.DS.'html'.DS.'message.php');?>
			<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			  <div class="modal-dialog ">
			    <div class="modal-content modal-error">
			      <div class="modal-body">
			      	<div id="error_message">
			      			
			      	</div>
			      </div>
			      <div class="modal-footer modal-footer-error">
			        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			      </div>
			    </div>
			  </div>
			</div>
			
			<div class="modal fade " id="cartModal" tabindex="-1" role="dialog" aria-labelledby="myCartLabel" aria-hidden="true">
              <div class="modal-dialog modal-sm">
                <div class="modal-content">
                  <div class="modal-body">
                        <i class="fa fa-check-circle fa-5x"></i>
                  </div>
                </div>
              </div>
            </div>
            
		</section>
	</body>
</html>